export const ImgFormat = (str) => {
	if(!str) return false
	const dot = str.lastIndexOf('.')
	let format = 'png'
	if(dot !== -1){
		format = str.substring(dot + 1)
	}
	return format
}

export const ImgName = (str) => {
	if(!str) return false
	const dot = str.lastIndexOf('.')
	let name = Date.now()
	if(dot !== -1){
		name = str.substring(0, dot)
	}
	return name
}